<template>
    <div>
        <h3>DOM操作</h3>
        <button @click="getElement">获取元素</button>
        <div ref="ele1"><input type="text"/></div>
    </div>
</template>

<script>
export default {
    data () {
        return {}
    },
    methods:{
        getElement(){
            console.log(this.$refs.ele1.innerHTML);
        }
    }
}
</script>
